package android.dj.lbscamera.entities;

import java.util.ArrayList;

public class PostcardSet {

	private ArrayList<Postcard> mPostcards;
	private Postcard postcard;
	
	public PostcardSet() {
		this.mPostcards = new ArrayList<Postcard>();
	}
	
	public void deletePostcard(int position){
		mPostcards.remove(position);
	}
	
	public void addPostcard(Postcard postcard){
		mPostcards.add(postcard);
	}
	
	public void addPostcard(int index, Postcard postcard){
		mPostcards.add(index, postcard);
	}
	
	public int getCount(){
		return mPostcards.size();
	}
	
	public Object getItem(int position){
		return mPostcards.get(position);
	}
	
	public int getItemId(int position){
		return mPostcards.get(position).getmPostcardId();
	}
	
	public Postcard getPostcard(int position){
		return mPostcards.get(position);
	}
}
